package com.swsc.xapp.model;


import java.time.LocalDateTime;
import java.util.Collection;
import java.util.List;

/**
 * @Author chencl
 * @Date 2022/7/5 11:02
 * @Version 1.0
 * @Description DefectQueryReqVO
 */
public class DefectQueryReqVO  {
    private Integer pageNo;
    private Integer pageSize;
    private String sortBy;
    private Long userNo;
    private Collection<Integer> organNoIn;
    private Integer tenantNo;
    private Integer organNo;
    private Integer stationNo;

    private String patrolTime;


    private LocalDateTime patrolStartTime;

    private LocalDateTime patrolEndTime;

    private String faultStatus;

    private String faultName;
    private List<String> faultNameIn;
    private String faultNameInStr;

    private String faultNo;
    private List<String> faultNoIn;
    private String faultNoInStr;

    private String faultLevel;

    private String deviceCode;

    private String zone;


    private Integer repeatTimes;

    private List<Integer> defectIdIn;

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getSortBy() {
        return sortBy;
    }

    public void setSortBy(String sortBy) {
        this.sortBy = sortBy;
    }

    public Long getUserNo() {
        return userNo;
    }

    public void setUserNo(Long userNo) {
        this.userNo = userNo;
    }

    public Collection<Integer> getOrganNoIn() {
        return organNoIn;
    }

    public void setOrganNoIn(Collection<Integer> organNoIn) {
        this.organNoIn = organNoIn;
    }

    public Integer getTenantNo() {
        return tenantNo;
    }

    public void setTenantNo(Integer tenantNo) {
        this.tenantNo = tenantNo;
    }

    public Integer getOrganNo() {
        return null != organNo ? organNo : stationNo;
    }

    public void setOrganNo(Integer organNo) {
        this.organNo = organNo;
    }

    public String getPatrolTime() {
        return patrolTime;
    }

    public void setPatrolTime(String patrolTime) {
        this.patrolTime = patrolTime;
    }

    public LocalDateTime getPatrolStartTime() {
        return patrolStartTime;
    }

    public void setPatrolStartTime(LocalDateTime patrolStartTime) {
        this.patrolStartTime = patrolStartTime;
    }

    public LocalDateTime getPatrolEndTime() {
        return patrolEndTime;
    }

    public void setPatrolEndTime(LocalDateTime patrolEndTime) {
        this.patrolEndTime = patrolEndTime;
    }

    public String getFaultStatus() {
        return faultStatus;
    }

    public void setFaultStatus(String faultStatus) {
        this.faultStatus = faultStatus;
    }

    public String getFaultName() {
        return faultName;
    }

    public void setFaultName(String faultName) {
        this.faultName = faultName;
    }

    public List<String> getFaultNameIn() {
        return faultNameIn;
    }

    public void setFaultNameIn(List<String> faultNameIn) {
        this.faultNameIn = faultNameIn;
    }

    public String getFaultNameInStr() {
        return faultNameInStr;
    }

    public void setFaultNameInStr(String faultNameInStr) {
        this.faultNameInStr = faultNameInStr;
    }

    public String getFaultNo() {
        return faultNo;
    }

    public void setFaultNo(String faultNo) {
        this.faultNo = faultNo;
    }

    public List<String> getFaultNoIn() {
        return faultNoIn;
    }

    public void setFaultNoIn(List<String> faultNoIn) {
        this.faultNoIn = faultNoIn;
    }

    public String getFaultNoInStr() {
        return faultNoInStr;
    }

    public void setFaultNoInStr(String faultNoInStr) {
        this.faultNoInStr = faultNoInStr;
    }

    public String getFaultLevel() {
        return faultLevel;
    }

    public void setFaultLevel(String faultLevel) {
        this.faultLevel = faultLevel;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getZone() {
        return zone;
    }

    public void setZone(String zone) {
        this.zone = zone;
    }

    public Integer getRepeatTimes() {
        return repeatTimes;
    }

    public void setRepeatTimes(Integer repeatTimes) {
        this.repeatTimes = repeatTimes;
    }

    public List<Integer> getDefectIdIn() {
        return defectIdIn;
    }

    public void setDefectIdIn(List<Integer> defectIdIn) {
        this.defectIdIn = defectIdIn;
    }

    public Integer getStationNo() {
        return stationNo;
    }

    public void setStationNo(Integer stationNo) {
        this.stationNo = stationNo;
    }
}
